package com.szrt.day20170411;


public class Student {
	
	
	/**
	 * 学生的名字
	 */
	private String studentName;
	
	
	/**
	 * 学生的性别
	 */
	private char studentSex;
	
	
	/**
	 * 学生的年龄
	 */
	private int studentAge;
	
	
	
	
	
	
	public String getStudentName() {
		return studentName;
	}


	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}


	public char getStudentSex() {
		return studentSex;
	}


	public void setStudentSex(char studentSex) {
		this.studentSex = studentSex;
	}


	public int getStudentAge() {
		return studentAge;
	}


	public void setStudentAge(int studentAge) {
		this.studentAge = studentAge;
	}


	/**
	 * 唱歌
	 * @param singName  要唱的歌的名字
	 */
	public void sing(String singName){
		System.out.println("唱"+singName+"歌");
		
	}
	
	
	public Student(){
		
	}
	
	public Student(String name ){
		studentName = name;
	}
	
	public Student(String name,int age,char sex ){
		studentName = name;
		studentSex=sex;
		studentAge =age;
	}
	
	
	public Student(String studentName, int studentAge) {
		super();
		this.studentName = studentName;
		this.studentAge = studentAge;
	}


	/**
	 * 加法
	 * @param x
	 * @param y
	 * @return
	 */
	public int add(int x ,int y){
		return x+y;
	}


	public String toString() {
		return "Student [studentName=" + studentName + ", studentSex=" + studentSex + ", studentAge=" + studentAge
				+ "]";
	}
	
	
	

}
